var ws;
document.addEventListener('plusready',function(){
	ws = plus.webview.currentWebview();
	var dat = plus.storage.getItem('shouru');
	var data = $.parseJSON(dat);
//	console.log(JSON.stringify(data));
	$('.balance').text(data.balance);
	//下一步
	$('.deposit-btn').click(function(){
		var money = $('.money').val();
		if(!money.match(m)){
			toast('金额错误');return;
		}
		console.log(money);
		if(parseFloat(data.balance) <= 0 || parseFloat(data.balance) < parseFloat(money)){
			toast('余额不足，不能提现');return;
		}
		goNewPage('me-jf-withdraw-deposit-2.html', {money:money,spage:ws.id});
	})
},false)